package com.ruoyi.eam.service;

import java.util.List;

import com.ruoyi.eam.doman.EamAsset;
import com.ruoyi.eam.doman.EamLoanbackD;

/**
 * 借用归还从Service接口
 *
 * @author xl
 * @date 2024-07-08
 */
public interface IEamLoanbackDService
{
    /**
     * 查询借用归还从
     *
     * @param loanBackId 借用归还从主键
     * @return 借用归还从
     */
    public EamLoanbackD selectEamLoanbackDByLoanBackId(Long loanBackId);

    /**
     * 查询借用归还从列表
     *
     * @param eamLoanbackD 借用归还从
     * @return 借用归还从集合
     */
    public List<EamLoanbackD> selectEamLoanbackDList(EamLoanbackD eamLoanbackD);

    /**
     * 新增借用归还从
     *
     * @param eamLoanbackD 借用归还从
     * @return 结果
     */
    public int insertEamLoanbackD(List<EamAsset> eamAssets);

    /**
     * 修改借用归还从
     *
     * @param eamLoanbackD 借用归还从
     * @return 结果
     */
    public int updateEamLoanbackD(EamLoanbackD eamLoanbackD);

    /**
     * 批量删除借用归还从
     *
     * @param loanBackIds 需要删除的借用归还从主键集合
     * @return 结果
     */
    public int deleteEamLoanbackDByLoanBackIds(Long[] loanBackIds);

    /**
     * 删除借用归还从信息
     *
     * @param loanBackId 借用归还从主键
     * @return 结果
     */
    public int deleteEamLoanbackDByLoanBackId(Long loanBackId);

    public int updateLoanBackD(List<EamAsset> eamAssets,Long loanBackId);
}
